<template>
  <div class="welcome">
    <el-card>
      欢迎使用该系统架子
    </el-card>
  </div>
</template>

<script>
import { reactive, toRefs } from 'vue'

export default {
  setup() {
    const state = reactive({
      count: 0,
    })
    return {
      ...toRefs(state),
    }
  },
  methods: {
    async test() {
      let { data: res } = await this.$request.get('/getdata')
      if (!res) return
      console.log(res)
      this.$storage.setSession('shishen', res)
      this.count = res
      console.log(this.count)
    },
  },
  created() {
    this.test()
  },
  mounted() {
    // console.log(this.count)
  },
}
</script>

<style lang="scss" scoped>
</style>